package com.charger.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.charger.mapper.RisksManageMapper;
import com.charger.domain.RisksManage;
import com.charger.service.IRisksManageService;

/**
 * 隐患处理Service业务层处理
 * 
 * @author xuan
 * @date 2024-11-27
 */
@Service
public class RisksManageServiceImpl implements IRisksManageService 
{
    @Autowired
    private RisksManageMapper risksManageMapper;

    /**
     * 查询隐患处理
     * 
     * @param risksId 隐患处理主键
     * @return 隐患处理
     */
    @Override
    public RisksManage selectRisksManageByRisksId(Long risksId)
    {
        return risksManageMapper.selectRisksManageByRisksId(risksId);
    }

    /**
     * 查询隐患处理列表
     * 
     * @param risksManage 隐患处理
     * @return 隐患处理
     */
    @Override
    public List<RisksManage> selectRisksManageList(RisksManage risksManage)
    {
        return risksManageMapper.selectRisksManageList(risksManage);
    }

    /**
     * 新增隐患处理
     * 
     * @param risksManage 隐患处理
     * @return 结果
     */
    @Override
    public int insertRisksManage(RisksManage risksManage)
    {
        return risksManageMapper.insertRisksManage(risksManage);
    }

    /**
     * 修改隐患处理
     * 
     * @param risksManage 隐患处理
     * @return 结果
     */
    @Override
    public int updateRisksManage(RisksManage risksManage)
    {
        return risksManageMapper.updateRisksManage(risksManage);
    }

    /**
     * 批量删除隐患处理
     * 
     * @param risksIds 需要删除的隐患处理主键
     * @return 结果
     */
    @Override
    public int deleteRisksManageByRisksIds(Long[] risksIds)
    {
        return risksManageMapper.deleteRisksManageByRisksIds(risksIds);
    }

    /**
     * 删除隐患处理信息
     * 
     * @param risksId 隐患处理主键
     * @return 结果
     */
    @Override
    public int deleteRisksManageByRisksId(Long risksId)
    {
        return risksManageMapper.deleteRisksManageByRisksId(risksId);
    }
}
